package com.todod.base.module.infra.controller.admin.basecarousel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.todod.base.framework.excel.core.annotations.DictFormat;
import com.todod.base.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 轮播图管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BaseCarouselRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2414")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "平台", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "平台", converter = DictConvert.class)
    @DictFormat("public_data_origin") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Short ptType;

    @Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "分类", converter = DictConvert.class)
    @DictFormat("infra_location_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Short locationType;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序号")
    private Integer sort;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建者")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}